$(function(){
    let layer=layui.layer
    $('#logout').on('click',function(){
        layer.confirm('确定退出登录吗'),{
            icon:3,title:'提示',},function(index){

                location.href='/login.html'
                localStorage.removeItem('token')
                layer.close(index)
            }
    })
})